package com.hailong.zyt.beans;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hailong
 * @since 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("stu_id")
    private Long stuId;

    @TableField("stu_name")
    private String stuName;

    @TableField("stu_password")
    private String stuPassword;

    @TableField("stu_email")
    private String stuEmail;

    @TableField("stu_phone")
    private String stuPhone;

    @TableField("stu_sex")
    private String stuSex;

    @TableField("stu_major")
    private String stuMajor;

    @TableField(exist = false)
    private List<HomeworkStudent> hws;

    @TableField(exist = false)
    private float maxMark;

    @TableField(exist = false)
    private int unFinished;

    @TableField(exist = false)
    private float avgMark;
}
